package com.zhkj.txg.module.mine.entity

import com.google.gson.annotations.SerializedName
import com.zhkj.lib.http.BaseResponse
import com.zhkj.txg.module.product.entity.ShopEntity

data class RefundListResponse(
    val data: MutableList<RefundListEntity> = mutableListOf()
) : BaseResponse() {
    var hasMore = true
    var loadMore = false
}

data class RefundListEntity(
    val id: Long,
    @SerializedName("order_id")
    val orderId: Long,
    @SerializedName("goods_id")
    val goodsId: Long,
    val type: Int,//售后类型 0=仅退款,1=退货退款,2=换货
    @SerializedName("type_text")
    val typeText: String,
    val status: Int,//退款状态 -2用户取消-1商家不同意0待审核1商家通过2用户已寄回3商家已收货4换货完成5退款完成
    @SerializedName("refund_money")
    val refundMoney: String = "",
    @SerializedName("order_goods")
    val goods: RefundListGoodsEntity? = null,
    val shop: ShopEntity? = null
)

data class RefundListGoodsEntity(
    @SerializedName("goods_id")
    val goodsId: Long,
    @SerializedName("goods_name")
    val goodsName: String = "",
    @SerializedName("spec_key_name")
    val specValue: String = "",
    val image: String = ""
)